public class ExceptionDemo
	{
	public void exceptionsDemo()
		{
		System.out.println("Division by zero");
		try
			{
			int i = 1/0;
			}
		catch(ArithmeticException ae)
			{
			System.out.println("Cannot divide anything by zero");
			}
		System.out.println("After division by zero");
		}
	
	public static void main(String args[])
		{
		ExceptionDemo obj = new ExceptionDemo();
		obj.exceptionsDemo();
		}
	}